package cn.lytcom.architecture.api;

import cn.lytcom.architecture.model.GitHub;
import cn.lytcom.architecture.model.User;
import io.reactivex.Observable;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by lytcom on 2017/5/7.
 */

public interface ApiRestService {

    @GET("/users/{user}")
    Call<User> getUser(@Path("user") String user);

    @GET("/")
    Observable<GitHub> getGitHub();
}
